

import logging,yagmail,HTMLTestRunner_PY3

class Tools():

    def Report(self):
        report = HTMLTestRunner_PY3.HTMLTestRunner(open('mengqinkai.html','wb'),
                                                   title='测试报告',
                                                   description='孟勤凯vue')
        return report


    def send_email(self):
        email = yagmail.SMTP(user='1229623302@qq.com',password='rkjwmduntxgmbacg',host='smtp.qq.com')
        email.send(to='1229623302@qq.com',subject='孟勤凯的邮箱',contents=['练习','mengqinkai.html'])
        email.close()

















